const http = uni.$u.http

const api = {
	wechat: '/api/miniapp/wechat.php',
	event_list: '/api/miniapp/user.php?act=event_list',
	refund_order: '/api/miniapp/order.php?act=refund_order',
	detail: '/api/miniapp/event.php?act=detail',
	list: '/api/miniapp/event.php?act=list',
	manage_list: '/api/miniapp/event.php?act=manage_list',
	leader_manage_list: '/api/miniapp/event.php?act=leader_manage_list',
	history_list: '/api/miniapp/event.php?act=history_list',
	user_list: '/api/miniapp/event.php?act=user_list',
	get_day: '/api/miniapp/event.php?act=get_day',
	tags: '/api/miniapp/event.php?act=tags',
	event_author: '/api/miniapp/member/info.php',
	add: '/api/miniapp/event.php?act=add',
	update: '/api/miniapp/event.php?act=update',
	event_detail: '/api/miniapp/event.php?act=event_detail',
	pricemod: '/api/miniapp/event/pricemod.php',
	event_member: '/api/miniapp/event.php?act=event_member',
	event_over_detail: '/api/miniapp/event_over_detail.php',
	delete_event_file: '/api/miniapp/event.php?act=delete_event_file',
	join: '/api/miniapp/event/join.php',
	canceljoin: '/api/miniapp/event/canceljoin.php',
	creatnotice: '/api/miniapp/event/creatnotice.php',
	notice_detail: '/api/miniapp/event/notice_detail.php',
	h5_apply_info: '/api/miniapp/event/h5_apply_info.php',

}


export const h5_apply_info = (params, config) => http.post(api.h5_apply_info, params, {
	custom: {
		toast: false
	},

	...config
})



export const delete_event_file = (params, config) => http.post(api.delete_event_file, params, {
	custom: {
		toast: false
	},

	...config
})

export const event_member = (params, config) => http.post(api.event_member, params, {
	custom: {
		toast: false
	},

	...config
})

export const pricemod = (params, config) => http.get(api.pricemod, params, {
	custom: {
		toast: false
	},

	...config
})


export const event_over_detail = (params, config) => http.post(api.event_over_detail, params, {
	custom: {
		toast: false
	},

	...config
})


export const event_detail = (params, config) => http.post(api.event_detail, params, {
	custom: {
		toast: false
	},

	...config
})
export const update = (params, config) => http.post(api.update, params, {
	custom: {
		toast: false
	},
	...config
})
export const add = (params, config) => http.post(api.add, params, {
	custom: {
		toast: false
	},
	...config
})

export const tags = (params, config) => http.get(api.tags, params, {
	custom: {
		toast: false
	},

	...config
})

export const event_author = (params, config) => http.get(api.event_author, params, {
	custom: {
		toast: false
	},

	...config
})


export const getDay = (params, config) => http.post(api.get_day, params, {
	custom: {
		toast: false
	},

	...config
})

export const list = (params, config) => http.post(api.list, params, {
	custom: {
		toast: false
	},

	...config
})

export const manage_list = (params, config) => http.post(api.manage_list, params, {
	custom: {
		toast: false
	},

	...config
})

export const leader_manage_list = (params, config) => http.post(api.leader_manage_list, params, {
	custom: {
		toast: false
	},

	...config
})

export const user_list = (params, config) => http.post(api.user_list, params, {
	custom: {
		toast: false
	},

	...config
})


export const wechat = (params, config) => http.get(api.wechat, params, {
	custom: {
		toast: false
	},

	...config
})
export const detail = (params, config) => http.post(api.detail, params, {
	custom: {
		toast: false
	},

	...config
})
export const event_list = (params, config) => http.get(api.event_list, params, {
	custom: {
		toast: false
	},

	...config
})

export const history_list = (params, config) => http.get(api.history_list, params, {
	custom: {
		toast: false
	},

	...config
})


export const refund_order = (params, config) => http.get(api.refund_order, params, {
	custom: {
		toast: false
	},

	...config
})

export const join = (params, config) => http.post(api.join, params, {
	custom: {
		toast: false
	},

	...config
})


export const canceljoin = (params, config) => http.post(api.canceljoin, params, {
	custom: {
		toast: false
	},

	...config
})


 
export const creatnotice = (params, config) => http.post(api.creatnotice, params, {
	custom: {
		toast: false
	},
	...config
})

export const notice_detail = (params, config) => http.post(api.notice_detail, params, {
	custom: {
		toast: false
	},
	...config
})